﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObserverPattern
{
    public class PortfolioDisplay
    {

        public void Print(Portfolio portfolio)
        {
            System.Console.Clear();
            foreach (KeyValuePair<Stock, uint> stock in portfolio.Stocks)
            {
                System.Console.WriteLine(stock.Value.ToString()+ ":\t" + stock.Key.Name + "\t" + stock.Key.Value.ToString());
            }

        }
    }
}
